﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ZK.HardWareBLL
{
    /// <summary>
    /// bll的基础类
    /// </summary>
    public abstract class BaseBLL
    {
        public Models.TerminalM terminal = new Models.TerminalM();

        /// <summary>
        /// 网络继电器获取输入数据
        /// </summary>
        /// <returns></returns>
        public virtual int NrGetData()
        {
            return -1;
        }
        /// <summary>
        /// 泥人继电器打开某一路
        /// </summary>
        /// <returns></returns>
        public virtual bool NrOpenWay(int num = 1)
        {
            return true;
        }

        /// <summary>
        /// 显示绿灯
        /// </summary>
        /// <returns></returns>
        public virtual bool GreenLight()
        {
            return true;
        }
        /// <summary>
        /// 显示红灯
        /// </summary>
        /// <returns></returns>
        public virtual bool RedLight()
        {
            return true;
        }

        /// <summary>
        /// 摄像头打开道闸
        /// </summary>
        /// <returns></returns>
        public virtual bool OpenBarrierGate()
        {
            return true;
        }
        /// <summary>
        /// led显示内容
        /// </summary>
        /// <param name="str"></param>
        /// <returns></returns>
        public virtual bool LedSengMessage(string str)
        {
            return true;
        }
        /// <summary>
        /// 打开音响播放音乐
        /// </summary>
        /// <param name="str"></param>
        /// <param name="vol"></param>
        /// <returns></returns>
        public virtual bool OpenSound(string str)
        {
            return true;
        }

        public virtual bool CameraUpLoadFile(string uuid)
        {
            return true;
        }

    }
}
